package org.example.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @TableName d_amount
 */
@TableName(value ="d_amount")
@Data
@Schema(name = "水电DAmount" ,description = "水电数据对象")
public class DAmount implements Serializable {
    @Schema(description = "结算Id")
    private Integer tid;

    @Schema(description = "电费")
    private Double amountElectric;

    @Schema(description = "水费")
    private Double amountHydro;

    @Schema(description = "更新日期")
    private Date updateDate;

    @Schema(description = "结算月份")
    private String amountDate;

    @Schema(description = "房间号")
    private String apartmentId;

    @Schema(description = "员工号")
    private String staffId;

    @Schema(description = "结算状态")
    private Integer amountStatus;

    @Schema(description = "电")
    private Double electric;

    @Schema(description = "水")
    private Double hydro;

    @Schema(description = "员工号")
    @TableField(exist = false)
    private String staffsId;

    @Schema(description = "员工组")
    @TableField(exist = false)
    private ArrayList<DStaff> dStaffs=new ArrayList<>();

    @Schema(description = "楼栋号")
    @TableField(exist = false)
    private String buildingId;

    @Schema(description = "电合计")
    @TableField(exist = false)
    private Double sumAmountElectric;

    @Schema(description = "水合计")
    @TableField(exist = false)
    private Double sumAmountHydro;

    private static final long serialVersionUID = 1L;
}